#ifndef __MoonWarriorsx__Effect__
#define __MoonWarriorsx__Effect__

#include "cocos2d.h"
USING_NS_CC;

class Effect : public Node
{
    
private:

    Sprite *m_sprite;
    
public:

	static Effect* create( );

    Effect(void);
    ~Effect(void);
    
    // flare effect
    void flareEffect(Node* parent, CCCallFunc* callback);
	void explode( Node *parent, Vec2 pos );
	void spark( Node *parent,Vec2 pos, float scale, float duration );

    void killSprite(Node *pSender);

    static void sharedExplosion();
  
};
#endif /* defined(__MoonWarriorsx__Effect__) */